package nbcp

import nbcp.TestBase
import org.junit.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.jdbc.core.JdbcTemplate
import org.springframework.stereotype.Service
import nbcp.base.extend.ToJson

import nbcp.db.mybatis.CommonService


@Service
open class CityService : CommonService() {
}

class tool : TestBase() {

    @Autowired()
    lateinit var jdbcTemplate:JdbcTemplate

    @Test
    fun t() {
        var d = CityService();
        var sql = d.getCountSql("""
select *
from s_city
""")

        jdbcTemplate.query(sql){
            println(it.getString(1))
        };
        println(sql)
    }
}